package trading.ctm.yunjing.module.mine.activity

import android.content.Intent
import android.os.Bundle
import cc.vv.baselibrary.activity.BaseActivity
import cc.vv.baselibrary.util.LKToastUtil
import cc.vv.baselibrary.view.BaseTopBarView
import kotlinx.android.synthetic.main.activity_pay_cash_deposit.*
import trading.ctm.yunjing.R
import trading.ctm.yunjing.module.auction.activity.AuctionRegulationActivity

/**
 * @desc 缴纳保证金
 * @author zouxiaorui
 * @date  2018/8/8
 */
class PayCashDepositActivity : BaseActivity() {
    override fun initLayoutRes(): Int {
        return R.layout.activity_pay_cash_deposit
    }

    override fun initView(bundle: Bundle?) {
        super.initView(bundle)
    }

    override fun initData(data: Bundle?) {
        super.initData(data)
    }

    override fun initAction(data: Bundle?) {
        super.initAction(data)

        btbv_pcda_title.setEventInterface(object : BaseTopBarView.EventInterface {
            override fun leftOnClick() {
                finish()
            }

            override fun leftCloseClick() {
            }

            override fun rightOnClick() {
            }

        })

        //缴纳保证金
        tv_apcd_cash_deposit
        //收货地址
        tv_apcd_address
        //地址选择
        tv_apcd_address.setOnClickListener {
            LKToastUtil.showToastShort("地址选择")
        }
        iv_apce_address_select.setOnClickListener {
            LKToastUtil.showToastShort("地址选择")
        }
        //同意
        iv_apcd_agree_rules
        //拍卖规则
        tv_apcd_auction_read.setOnClickListener {
            startActivity(Intent(this@PayCashDepositActivity, AuctionRegulationActivity::class.java))
        }
        //支付保证金
        tv_apcd_pay_deposit.setOnClickListener {
            startActivity(Intent(this@PayCashDepositActivity, MineCashDepositActivity::class.java))
        }
    }
}